package com.qqtech.qquan.order.enums;
/**
 * 退款状态的方式:1-卖家同意退款;2-圈圈后台同意退款
 *
 */
public enum ReturnPayStatusAgreeTypeEnum {
	SELLER(1), ADMIN(2);
	int code;

	ReturnPayStatusAgreeTypeEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		ReturnPayStatusAgreeTypeEnum[] arrEnum = ReturnPayStatusAgreeTypeEnum.values();
		for (ReturnPayStatusAgreeTypeEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
